package com.bdmc.task.mapper;

import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.task.domain.TaskTeamSpan;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.task.domain.bo.TaskTeamSpanBo;
import com.bdmc.task.domain.vo.TaskTeamSpanVo;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 考勤时间段Mapper接口
 *
 * @author bdmc
 * @date 2022-03-06
 */
public interface TaskTeamSpanMapper extends BaseMapperPlus<TaskTeamSpan> {

    Page<TaskTeamSpanVo> mySelectPage(@Param("page") Page<TaskTeamSpan> page, @Param("param") TaskTeamSpanBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<Map<String,Object>> selectWorkingCar(@Param("param") TaskTeamSpanBo bo);

    @DataPermission({@DataColumn(value = "d.dept_id")})
    List<Map<String,Object>> selectWorkingPerson(@Param("param") TaskTeamSpanBo bo);
}
